module.exports=function (format) {
    var reg=(/:(\w+)/g);
    return function logger(req,res,next) {
        var str=format.replace(reg,function (match, property) {
            return ':'+req[property];
        });
        console.log(str);
        next();
    }
};